export class DateUtils {
    public static getNowFormatDate() {
        const date = new Date();
        const seperator1 = '-';
        const seperator2 = ':';
        const month = date.getMonth() + 1;
        const strDate = date.getDate();
        const currentdate = date.getFullYear()
            + seperator1
            + ((month >= 1 && month <= 9) ? ('0' + month) : month)
            + seperator1
            + ((strDate >= 0 && strDate <= 9) ? '0' + strDate : strDate)
            + ' ' + date.getHours() + seperator2 + date.getMinutes()
            + seperator2 + date.getSeconds();
        return currentdate;
    }

}